package com.lcj.demo.repository;

import com.lcj.demo.domain.Department;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface DepartmentRepository extends JpaRepository<Department,Long> {

//    @Query(value = "select d from Department as d where d.id like '%'||?1||'%' or d.name like '%'||?1||'%'")
//    Page<Department> findAllBySearchKey(String searchKey, Pageable pageable);
}
